package com.numberma.permissionservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.numberma.permissionservice.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

public interface RoleMapper extends BaseMapper<Role> {
    @Select("select role_id from roles where role_code = #{roleCode}")
     int GetIdByRoleCode(String roleCode);
    @Select("select * from roles where role_id = #{roleId}")
    Role selectByRoleId(int roleId);
}
